generic configuration HookSenderC (am_id_t AMId){
	provides{
		interface AMSend;
		interface Packet;
		interface AMPacket;
		interface PacketAcknowledgements as Acks;
	}
}
implementation{
	components new AMQueueEntryP(AMId) as AMQueueEntryP;
	components new HookSenderP(AMId) as HookSenderP;
	components ActiveMessageImplP, AMQueueP, ActiveMessageC;
	
	AMQueueEntryP.Send -> AMQueueP.Send[unique(UQ_AMQUEUE_SEND)];
  	AMQueueEntryP.AMPacket -> ActiveMessageC;
	
	AMSend = AMQueueEntryP.AMSend;
	Packet = ActiveMessageC.Packet;
	AMPacket = ActiveMessageC.AMPacket;
	Acks = ActiveMessageC.PacketAcknowledgements;
}
